package com.peza.bikelog.common.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class CourseData implements Serializable{

	private static final long serialVersionUID = 1L;

	@Column(name="DISTANCE")
	private Float distance;

	@Column(name="LOCATION")
	private String location;
	
	@Column(name="ASCENT")
	private Integer ascent;
	
	@Column(name="SURFACE")
	private Surface surface;

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public Integer getAscent() {
		return ascent;
	}

	public void setAscent(Integer ascent) {
		this.ascent = ascent;
	}

	public Surface getSurface() {
		return surface;
	}

	public void setSurface(Surface surface) {
		this.surface = surface;
	}

	public Float getDistance() {
		return distance;
	}

	public void setDistance(Float distance) {
		this.distance = distance;
	}

	@Override
	public String toString() {
		return "CourseData [distance=" + distance + ", location=" + location
				+ ", ascent=" + ascent + ", surface=" + surface + "]";
	}

	
	

}
